#-*- coding:utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.

#页面配置表
class page_nav(models.Model):
    name = models.CharField(u'导航栏' , max_length=50 , unique=True , blank=True , null=True)
    order = models.IntegerField(u'排序')
    describe = models.CharField(u'描述' , max_length=50 , blank=True , null=True)

class page_menu(models.Model):
    name = models.CharField(u'菜单栏', max_length=50, unique=True ,blank=True, null=True)
    order = models.IntegerField(u'排序')
    describe = models.CharField(u'描述', max_length=50, blank=True, null=True)
    nav = models.ForeignKey(page_nav, blank=True, null=True)

class page_item(models.Model):
    name = models.CharField(u'菜单项', max_length=50, unique=True ,blank=True, null=True)
    link = models.CharField(u'uri链接', max_length=50, blank=True, null=True)
    order = models.IntegerField(u'排序')
    menu = models.ForeignKey(page_menu, blank=True, null=True)
